/* MenuView.h
 * The first view to be loaded. Takes the user to the other views
 *
 * Last Modified: 16.01.2014
 * Author: Guilherme S.G.
 */

#ifndef __JB_MENU_VIEW_H__
#define __JB_MENU_VIEW_H__

#include "Global.h"
#include "View.h"
#include "ObjectRenderable.h"

class MenuView : public View
{
private:
    std::vector<std::pair<std::string, Coordinate> > items;
    
    ALLEGRO_BITMAP* background;
    ALLEGRO_FONT *menuFont, *itemFont;
    ALLEGRO_SAMPLE *menuMusic;
    ALLEGRO_SAMPLE *selectFx, *cursorMoveFx;
    Sprite *cursor;
    
    int selectedItem;
    ALLEGRO_SAMPLE_ID menuMusicID;
    
public:
    MenuView();
    ~MenuView();
    
    void handleEvents(ALLEGRO_EVENT *event);
    void update();
    void render();
};

#endif
